home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Gooey1.3.1 / Docs & Compile Hints / THINK C++ 7.0 Hints < prev    next >
Text File  |  1995-02-06  |  5KB  |  175 lines

  1. After generating code for the first time, for your new prototype, follow this  method to 
  2. get THINK C++ up and working for you:
  3.  
  4. CREATING A THINK PROJECT...
  5.  
  6. Ñ Find the 'Sources" folder made by the Code Generator.
  7. Ñ Open the "Sources" folder.
  8. Ñ Open the "mm" folder inside the "Sources" folder.
  9. Ñ Double click on any of the files you see there, this will automatically launch THINK.
  10. Ñ╩When THINK brings up a save dialog, it is asking you to name the new THINK project you 
  11. are making.  Change the folder level to one up, the "Sources" folder instead of the "mm" 
  12. folder.  Now enter your project name, using Option-P for the "╣" part of the name, e.g. MyProgram.╣
  13. Ñ Uncheck the "Folder" checkbox.
  14. Ñ Select the C++ type of project.
  15. Ñ Close the one file that THINK opened for you.
  16. Ñ Select the project window.
  17.  
  18.  
  19.  
  20. ADDING Gooey SPECIFIC FILES...
  21.  
  22. Ñ Click on the "main.cp" file name.
  23.  
  24. Ñ Under the "Source" menu, select the "Add Files..." menu item.
  25.  
  26. Ñ Open the "mm" folder, from the Add dialog.
  27.  
  28. Ñ Press the "Add All" button, this will select every file in this "mm" dialog.
  29.  
  30. Ñ Press the "Done" button, this will now add them all to your project.
  31.  
  32. Ñ╩Make the project window taller if necessary, for extra empty space at the bottom.
  33.  
  34. Ñ Click on the "main.cp" file name.
  35.  
  36. Ñ Under the "Source" menu, select the "Remove" menu item.
  37.  
  38. Ñ Press the mouse below the "Totals" message line.  This selects a new segment for the next 
  39. files to go into.
  40.  
  41.  
  42.  
  43. ADDING user SPECIFIC FILES...
  44.  
  45. Ñ Under the "Source" menu, select the "Add Files..." menu item.
  46.  
  47. Ñ Go up one level, from the "mm" folder into the "Source" folder.
  48.  
  49. Ñ Open the "resources" folder, from the Add dialog.
  50.  
  51. Ñ Select the file starting with "Rez_" and ending in ".r". This is the Rez file.
  52.  
  53. Ñ Press the "Add" button.
  54.  
  55. Ñ Go up one level, from the "resources" folder into the "Source" folder.
  56.  
  57. Ñ Open the "u" folder, from the Add dialog.
  58.  
  59. Ñ Press the "Add All" button, this will select every file in this "u" dialog.
  60.  
  61. Ñ Press the "Done" button, this will now add them all to your project.
  62.  
  63.  
  64.  
  65.  
  66. ADDING THINK LIBRARIES...
  67.  
  68. Ñ Now go to "CPlusLib" file and select it.  
  69. This tells THINK C that more files added will go into that segment.
  70.  
  71. Ñ Under the "Source" menu, select the "Add Files..." menu item.
  72.  
  73. Ñ Locate your THINK C folder.  Locate the "Mac Libraries" folder, open it up.
  74.  
  75. Ñ Select "MacTraps" and press the "Add" button.
  76.  
  77. Ñ Select "MacTraps2" and press the "Add" button.
  78.  
  79. Ñ Press the "Done" button, this will now add them all to your project.
  80.  
  81.  
  82.  
  83. SETTING UP THE PROJECT...
  84.  
  85. Ñ Under the "Project" menu, select the "Set Project Type..." menu item.
  86.  
  87. Ñ Change the partition size to something larger, like 1024K.
  88.  
  89. Ñ Change the "SIZE Flags" to be "5A80" to start off with.
  90.  
  91. Ñ╩Press the "OK" button.
  92.  
  93.  
  94.  
  95. Ñ Set all your THINK C++ preferences.
  96.  
  97.  
  98.  
  99.  
  100.  
  101. PRECOMPILED HEADERS...
  102.  
  103. Ñ Open the "mmHeaders.cp" file. Click on this file to select it.
  104.  
  105. Ñ Under the "Source" menu select the "Precompile╔" menu item.
  106.  
  107. Ñ Save the precompiled headers under the "mmHeaders68K" name.
  108.  
  109. Ñ Close the "mmHeaders.cp"file.
  110.  
  111. Ñ Set your THINK C++  prefix preferences to say:
  112. #include "mmHeaders68K"
  113.  
  114.  
  115.  
  116.  
  117. Ñ Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile 
  118. all the files.
  119.  
  120. Ñ If the main segment, the top one, is larger than 32K then create new segments and drag 
  121. some of the files into it.
  122.  
  123. Ñ Under the "Project" menu, select the "Check Link" menu item. This will tell you if any 
  124. files are missing.
  125.  
  126.  
  127.  
  128.  
  129.  
  130. CODING...
  131.  
  132. Ñ Make your changes to any file that does not start with "mm".  All the other files hook into 
  133. the "mm" files to provide you with access.
  134.  
  135.  
  136.  
  137.  
  138. RE-GENERATION.  After making changes or additions to your prototype.
  139.  
  140. Ñ Generate all sources again.  This will make a new folder named "Sources" or  "Sources" with 
  141. a number after it if that folder alreay exists.
  142.  
  143. Ñ Drag the "mm" folder from the newly generated folder into your working folder.
  144. NOTE: This replaces your older "mm" folder.  If you have made changes to any "mm" files, you 
  145. should never need to, then drag them into another folder first.
  146.  
  147. Ñ Drag the "mmXXX.rsrc" file from the new "resources" folder into your working "resources" folder.
  148.  
  149. Ñ Drag the "XXXX.╣.rsrc" file from your "Sources" folder into the trash can, you want THINK C to 
  150. make a new one using the new resource file.
  151.  
  152. Ñ Empty the trash.
  153.  
  154.  
  155. If you added a new Window, Dialog, or Alert then drag that corresponding file from the new "u" 
  156. folder into your working "u" folder.  If you are asked about replacing a file then say "No", you 
  157. got the wrong file.
  158.  
  159.  
  160. If you added a menu then open your "menuXXX.h" file and the new "menuXXX.h". Copy over the prototype 
  161. for the new menu.  Open your "menuXXX.c" file and the new "menuXXX.c".  Copy over the routine for the new menu.
  162.  
  163. If you added a button or other control then let THINK find any additional routines for you, in error messages.
  164.  
  165.  
  166.  
  167. Ñ Under the "Project" menu, select the "Remove Objects" menu item. This will make sure that all files 
  168. will be recompiled. 
  169.  
  170. Ñ Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile all the files.
  171.  
  172. If there are errors involving new routines, like a checkbox handler routine where there were no check
  173.  boxes before.  Open the old corresponding "xxx.h" file, from the "u" folder. Open the new "xxx.h" file, 
  174.  copy the new prototype over.  Open the "xxx.c" files and copy over the new routine.
  175.